package com.zmj.mapper;

import com.zmj.entity.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

public interface UserMapper {
    @Select("select * from t_user where acount =#{name}")
    User getUserByAccount(String name);

    @Insert("insert into t_user (name,password) values(#{name},#{password})")
int register(User user);
}
